##
# description: graphql schema file default method
# author: caspar
# auto generate template
##
#
extend type Query {
  <#list model.fields as field>

  ${field.methodNamePrefix}AdminGet(id:ID!): ${field.dtoModelName}
  ${field.methodNamePrefix}AdminGetList(ids:[ID!]!): [${field.dtoModelName}]
  ${field.methodNamePrefix}AdminSearch(query:String,page:PageInput): PageResult
  </#list>
}

extend type Mutation {
  <#list model.fields as field>

  ${field.methodNamePrefix}AdminSave(input: ${field.inputModelName}!, saveNullFieldFlag: Boolean!): ${field.idType}
  ${field.methodNamePrefix}AdminAdd(input: ${field.inputModelName}!, saveNullFieldFlag: Boolean!): ${field.idType}
  ${field.methodNamePrefix}AdminModify(input: ${field.inputModelName}!, saveNullFieldFlag: Boolean!): ${field.idType}
  ${field.methodNamePrefix}AdminRemove(ids: [ID!]!): Boolean
  ${field.methodNamePrefix}AdminRemoveLogic(ids: [ID!]!): Boolean
  </#list>
}